<script th:inline="javascript" xmlns:th="http://www.w3.org/1999/xhtml">
    alert([[${message}]]);
    setTimeout(function () {
        window.history.back();
    }, 0);
</script>